package LRU

import "time"

type Entry struct {
	key       string
	value     string
	timestamp time.Time
}

func NewData(key string, value string) *Entry {
	return &Entry{
		key:       key,
		value:     value,
		timestamp: time.Now(),
	}
}

func (d *Entry) GetValue() string {
	return d.value
}

func (d *Entry) GetTimestamp() time.Time {
	return d.timestamp
}

func (d *Entry) GetKey() string {
	return d.key
}

func (d *Entry) SetValue(value string) {
	d.value = value
}

func (d *Entry) SetKey(key string) {
	d.key = key
}
